<div class="right" id="right_side">
  <div class="rightShare">
  
    <div style="float:left; width:50%">
      <wb:follow-button uid="<?php global $uctheme_option; $sina_weibo = $uctheme_option['general']['sina_weibo']; echo $sina_weibo;?>" type="red_2" width="136" height="24" ></wb:follow-button>
    </div>
    
    <div style="float:left; width:50%">
      <iframe src="http://follow.v.t.qq.com/index.php?c=follow&a=quick&name=<?php global $uctheme_option; $qq_weibo = $uctheme_option['general']['qq_weibo']; echo $qq_weibo;?>&style=5&t=1362922458341&f=1" frameborder="0" scrolling="auto" width="178" height="24" marginwidth="0" marginheight="0" allowtransparency="true"></iframe>
    </div>
    
    <div>
    <!-- Baidu Button BEGIN -->
<div id="bdshare" class="bdshare_t bds_tools_32 get-codes-bdshare">
<a class="bds_qzone"></a>
<a class="bds_tsina"></a>
<a class="bds_tqq"></a>
<a class="bds_renren"></a>
<a class="bds_t163"></a>
<span class="bds_more"></span>
</div>
<script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=<?php global $uctheme_option; $baidushare = $uctheme_option['general']['baidushare']; echo $baidushare;?>" ></script>
<script type="text/javascript" id="bdshell_js"></script>
<script type="text/javascript">
document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
</script>
<!-- Baidu Button END -->
    </div>
    
    
    <div class="clear"></div>
  </div>
  <div class="rightPicBox">
    <div class="pointLeft"><a href="<?php bloginfo('url'); ?>/default" target="_blank">积分兑换</a> | <a href="<?php bloginfo('url'); ?>/default"  target="_blank" class="pushWords">实时推送</a>:</div>
    <div class="pushIcon"> <a href="<?php bloginfo('url'); ?>/default" target="_blank" title="iPhone官方客户端"><img src="<?php bloginfo('template_url'); ?>/images/iPhone.png"></a> <a href="<?php bloginfo('url'); ?>/default" target="_blank" title="android官方客户端"><img src="<?php bloginfo('template_url'); ?>/images/android.png"></a> <a href="<?php bloginfo('url'); ?>/default" target="_blank" title="Chrome浏览器插件"><img src="<?php bloginfo('template_url'); ?>/images/chrome.png"></a> <a href="<?php bloginfo('url'); ?>/default" target="_blank" title="Firefox浏览器插件"><img src="<?php bloginfo('template_url'); ?>/images/firefox.png"></a> <a href="<?php bloginfo('url'); ?>/default" target="_blank" title="Gtalk机器人"><img src="<?php bloginfo('template_url'); ?>/images/gtalk.png"></a> </div>
    <div class="clear"></div>
  </div>
  <div id="widget_fx_list-12" class="rightBox widget_fx_list">
    <h3 class="titleStyle"><a  href="<?php bloginfo('url'); ?>/details" style='color:#5183c0;'>发现频道 最新内容</a></h3>
    <div id="faxian_widget" class="faxian_widget">
      <div class="full" style="display:none;"><a class="faxian_href" href="<?php bloginfo('url'); ?>/details" target="_blank"><img class="faxian_widget_img" width="250" height="250"/>
        <div class="faxian_widget_title"></div>
        </a></div>
      <?php
 $args = array(
				'post_type'=>'detail',
				'showposts'=>'8'
			);
			$new_query = new WP_Query($args);
			if($new_query->have_posts()){
 echo '<ul>';
			while($new_query->have_posts()){
				$new_query->the_post(); ?>
      <li><a href="<?php echo get_permalink($new_query->post->ID);?>" target="_blank" class="relateFxPic">
        <?php
				if( has_post_thumbnail() ){
					$thumb_id = get_post_thumbnail_id($new_query->post->ID);
					$thumb = wp_get_attachment_image_src($thumb_id,array(250, 250));
					$url =  $thumb[0];
				}else{
					$url =get_post_img($new_query->post->ID, 250, 250 );
				}
				?>
        <img src="<?php echo $url;?>"  height="77" width="77" title="<?php echo $new_query->post->post_title; ?>" alt="<?php echo $new_query->post->post_title; ?>"/> </a></li>
      <?php
			}
			
			if($instance['more_link']!=''){
				$more_link = $instance['more_link'];
			}else{
				$more_link = get_post_type_archive_link( $instance['post_type'] );
			}		
			echo '<li><a href="'.$more_link.'" class="relateFxPic relateMore" target="_blank">&nbsp;</a></li></ul>'; }
	  ?>
    </div>
  </div>
  <div id="text-29" class="rightBox widget_text">
    <h3 class="titleStyle">Google提供的广告</h3>
    <div class="textwidget">
      <?php 
            global $uctheme_option;
            $ad = $uctheme_option['ad']['advert1']; 
            echo $ad;
       ?>
    </div>
  </div>
  <div id="text-27" class="rightBox widget_text">
    <h3 class="titleStyle">Google提供的广告</h3>
    <div class="textwidget">
      <table border="0" cellpadding="0" cellspacing="0" width="250" height="600" align="center">
        <tr>
          <td width="120"><?php 
            global $uctheme_option;
            $ad = $uctheme_option['ad']['advert2_1']; 
            echo $ad;
            ?>
          </td>
          <td width="10">&nbsp;</td>
          <td width="120"><?php 
            global $uctheme_option;
            $ad = $uctheme_option['ad']['advert2_2']; 
            echo $ad;
            ?>
          </td>
        </tr>
      </table>
    </div>
  </div>
  
  <?php dynamic_sidebar();?>
  <div id="right_side" class="rightBox widget_fx_list">
    <h3 class="titleStyle"><a href="#" style="color:#5183c0;">网站推荐 最新内容</a></h3>
    <div id="faxian_widget" class="faxian_widget">
      <div class="full" style="display:none;"><a class="faxian_href" href="<?php bloginfo('url'); ?>/details" target="_blank"><img class="faxian_widget_img" width="250" height="250"/>
        <div class="faxian_widget_title"></div>
        </a></div>
      <?php
 $args = array(
				'post_type'=>'post',
				'showposts'=>'8'
			);
			$new_query = new WP_Query($args);
			if($new_query->have_posts()){
 echo '<ul>';
			while($new_query->have_posts()){
				$new_query->the_post(); ?>
      <li><a href="<?php echo get_permalink($new_query->post->ID);?>" target="_blank" class="relateFxPic">
        <?php
				if( has_post_thumbnail() ){
					$thumb_id = get_post_thumbnail_id($new_query->post->ID);
					$thumb = wp_get_attachment_image_src($thumb_id,array(250, 250));
					$url =  $thumb[0];
				}else{
					$url =get_post_img($new_query->post->ID, 250, 250 );
				}
				?>
        <img src="<?php echo $url;?>"  height="77" width="77" title="<?php echo $new_query->post->post_title; ?>" alt="<?php echo $new_query->post->post_title; ?>"/> </a></li>
      <?php
			}
			
			if($instance['more_link']!=''){
				$more_link = $instance['more_link'];
			}else{
				$more_link = get_post_type_archive_link( $instance['post_type'] );
			}		
			echo '<li><a href="'.$more_link.'" class="relateFxPic relateMore" target="_blank">&nbsp;</a></li></ul>'; }
	  ?>
    </div>
  </div>
  <div id="right_sliding">
  

    <div id="text-23" class="rightBox widget_text">
      <h3 class="titleStyle">Google提供的广告</h3>
      <div class="textwidget">
        <?php 
            global $uctheme_option;
            $ad = $uctheme_option['ad']['advert3']; 
            echo $ad;
            ?>
      </div>
    </div>
  </div>
  
</div>
